import React, { Component } from 'react'

export default class App extends Component {
  state={
    todoList:[1]
  }
  render() {
   
    return (
      <div>
      {this.state.todoList.length===0
      ?(<p>您当前暂无待办事项</p>)
      :(<p>你当前有{this.state.todoList.length}条待办事项</p>)}
    </div>
    )
  }
}
